<?php

class Ga extends CI_Controller{
    function __construct() {
        parent::__construct();
    }
    function load_ajax_GD(){
        $MSG_Di=$this->input->post('from');
        $this->load->model('ga_model');
        $data=$this->ga_model->load_gaden($MSG_Di);
        $data=$data->result_array();
        $this->make_select($data);
    }
    
    function make_select($data){
        foreach ($data as $row) {
            echo '<option value="'.$row['MSG'].'">'.$row['TENSB'].', '.$row['THANHPHO'].', '.$row['QUOCGIA'].'</option>';
        }
    }
}

